<div class="container">
<?php 
	if($this->userOwner != null){
?>
<?php $this->headTitle($this->userOwner->getFirstName()." ".$this->userOwner->getLastName(),'SET'); ?>

	<div class="row">
		<div class="span2">
			<img src="<?php echo $this->baseUrl('img/profil/'.$this->userOwner->getAvatar());?>" class="img-polaroid"  style="width: 100px; height: 100px;">
			<?php if($this->is_mine){?><a href="#myModal" data-toggle="modal"><i class="icon-pencil"></i></a><?php } ?>
		</div>
		<div class="span10">
		<h1><?php echo $this->userOwner->getFirstName()." ".$this->userOwner->getLastName();?></h1>
		</div>
		<br>
		<div class="span12">
		<table class="table table-bordered">
		<thead>
		<tr>
			<td colspan="2">
			<div class="span11"><h3><?php echo $this->translate('About');?></h3></div>
			<div class="span1"><?php if($this->is_mine){?><a href="<?php echo $this->baseUrl('profil/edit'); ?>"><i class="icon-pencil"></i></a><?php } ?></div>
			</td>
		</tr>
		</thead>
		<tbody>
		<tr>
			<td>
			<?php if($this->is_mine){ ?>
			<a class="btn btn-mini btn-warning" href="<?php echo $this->baseUrl('profil/password'); ?>"><?php echo $this->translate('Change password')?></a>
			<?php } ?>
			<br>
			<?php if($this->is_mine){ ?>
			<?php echo $this->translate('Born:'); ?>
			<?php echo $this->userOwner->getBirthday(); 
			}?>
			<br>
			<?php if($this->is_mine){?>
			<h3><?php echo $this->translate('Contact'); ?></h3>
			<?php echo $this->translate('Mobile:'); ?> <?php echo $this->userOwner->getMobile();?>
			<br>
			<?php echo $this->translate('Email:'); ?> <?php echo $this->userOwner->getEmail();?>		
			</td>
			<?php }?>
			<td>
			<?php echo $this->translate('Localisation:'); ?> <?php echo $this->userOwner->getCountry();?>
			<br>
			<h3><?php echo $this->translate('General information:'); ?></h3> 
			<?php echo $this->translate('Sex:'); ?> <?php echo $this->userOwner->getSex();?>	
			</td>
		</tr>
		</tbody>
		</table>
		</div>
	</div>
	<?php if($this->is_mine){ ?>
	<div id="myModal" class="modal hide fade" tabindex="-1">
		<div class="modal-header">
			<button type="button" class="close" data-dismiss="modal">×</button>
			<h3 id="myModalLabel"><?php echo $this->translate('Please select your profil image'); ?></h3>
		</div>
		<?php echo $this->form; ?>
	</div>
	<?php } ?>
	
	<?php 
			
		}
	?>
	<?php if(!empty($this->alert)):?>
	<div class="alert alert-error">
	<button class="close" data-dismiss="alert" type="button">×</button>
	<?php 	echo $this->alert; ?>
	</div>
	<?php endif;?>
</div>